
const mongoose = require("mongoose");

// 创建商品子类的的数据结构
let childTypeSchema = new mongoose.Schema({
    Father_id: { type: "ObjectId", ref: "totalType" },
    //商品子类的name
    childType_name: String,
});
// 在数据库内创建 totalTypeSchema的集合
mongoose.model("childType", childTypeSchema, "childType");
